import request from '@/utils/request'

export default {
  // 留言列表条件分页查询
  getCommentList(current, size, data) {
    return request({
      url: `/article/comment/search/${current}/${size}`,
      method: 'post',
      data
    })
  },
  // 根据ID删除留言
  deleteById(commentId) {
    return request({
      url: `/article/comment/admin/remove/${commentId}`,
      method: 'delete'
    })
  },
  // 回复列表-条件分页查询
  getReplyList(current, size, data) {
    return request({
      url: `/article/reply/search/${current}/${size}`,
      method: 'post',
      data
    })
  },
  // 根据回复ID删除回复
  deleteByReplyId(replyId) {
    return request({
      url: `/article/reply/admin/remove/${replyId}`,
      method: 'delete'
    })
  }
}
